<template>
  <div id="board">
    <div v-for="(item, index) in list">
      <span>手机号码： {{ item.phone }}</span>
      <span style="margin-left:20px">验证码：{{ item.captcha }}</span>
    </div>
  </div>
</template>
<script>
import { getlist } from "@/api/index";
export default {
  name: "Login",
  data() {
    return {
      list: []
    };
  },
  created() {
    this.getlists()
    setInterval(() => {
      this.getlists()
    }, 3000);
  },
  methods: {
    getlists() {

      getlist({

      }).then(res => {
        this.list = res.data
      })
    },
  },
};
</script>


<style lang="less" scoped></style>